﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>
<html>
  <head>
    <title>在线讨论</title>
 	<script type="text/javascript" src="ny/js/jquery.min.js"></script>
<script type="text/javascript" src="ny/js/bootstrap.min.js"></script>
<script src="ny/js/jconfirm/jquery-confirm.min.js"></script>
<link href="ny/css/bootstrap.min.css" rel="stylesheet">
<link href="ny/css/materialdesignicons.min.css" rel="stylesheet">
<link href="ny/css/style.min.css" rel="stylesheet">
<link rel="stylesheet" href="ny/js/jconfirm/jquery-confirm.min.css">  
<link rel="stylesheet" href="kindeditor_a5/plugins/code/prettify.css" />
	<script charset="utf-8" src="kindeditor_a5/kindeditor.js"></script>
	<script charset="utf-8" src="kindeditor_a5/lang/zh_CN.js"></script>
	<script charset="utf-8" src="kindeditor_a5/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="neirong"]', {
				cssPath : 'kindeditor_a5/plugins/code/prettify.css',
				uploadJson : 'kindeditor_a5/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor_a5/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
	<script language="javascript">
function checkform()
{
	 
	var biaotiobj = document.form1.biaoti; if(biaotiobj.value==""){document.getElementById("clabelbiaoti").innerHTML="&nbsp;&nbsp;<font color=red>请输入标题</font>";return false;}else{document.getElementById("clabelbiaoti").innerHTML="  "; } 
	
}
popheight="450";
</script>
</head>
<body >
<div >
<div class="card-header"><h4>在线讨论</h4></div>
<div class="card-body">
 <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" class="newsline" style="border-collapse:collapse">
                          <tr>
                            <td height="104" valign="top">
							
							   <form action="addTiezi.do" name="form1" method="post"> 
							
							<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#E8E8E8" style="border-collapse:collapse">
                             
                                
                                  <tr>
                                    <td><span class="STYLE1">标题：</span></td>
                                    <td><input name='biaoti' type='text' id='biaoti' value='' size='50'  class='form-control'  style='width:70%' onblur='checkform()' />
                                      &nbsp;* <label id='clabelbiaoti' /></td>
                                  </tr>
                                 
                                  <tr>
                                    <td><span class="STYLE1">内容：</span></td>
                                    <td><textarea name="neirong" cols="100" rows="8"  class='form-control' style="width:700px;height:200px;visibility:hidden;"> </textarea>
                                    <label id='clabelneirong' /></td>
                                  </tr>
                                  <tr style="display:none">
                                    <td><span class="STYLE1">头像：</span></td>
                                    <td><input name="fujian" type="text" id="fujian" value='<%=request.getSession().getAttribute("zhaopian")%>' size="50">
                                    </td>
                                  </tr>
								    <tr style="display:none">
                                    <td><span class="STYLE1">前线：</span></td>
                                    <td><input name="issh" type="text" id="issh" value='<%=request.getSession().getAttribute("cx")%>' size="50">
                                    </td>
                                  </tr>
                                  <tr style="display:none">
                                    <td><span class="STYLE1">发起人：</span></td>
                                    <td><input name='faburen' type='text' id='faburen' value='<%=request.getSession().getAttribute("username")%>' /></td>
                                  </tr>
                                  <tr>
                                    <td><span class="STYLE1"></span></td>
                                    <td>
                                        <input type="submit" name="Submit5" value="提交" class="btn btn-primary"  onClick="return checkform();"/>
									 
										<input name="fid" class='hsgqiehuanshitu' type="hidden" id="fid" value="0"> <input name="addtime" type="hidden" id="addtime" value="<%=connDbBean.gettime()%>" />                                    </td>
                                  </tr>
                                
                            </table>
                            </form>
							</td>
                          </tr>
                          <tr>
                            <td align="right">  </td>
                          </tr>
                        </table>
</div>
</div>
</body>
</html>